package com.itl.lesson02.service.impl;

import com.itl.lesson02.dao.HuGuangDao;
import com.itl.lesson02.dto.HuGuang;
import com.itl.lesson02.service.HuGuangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 胡广
 * @date 2020-11-04
 * @since JDK1.8
 */
@Service
public class HuGuangServiceImpl implements HuGuangService {

    @Autowired
    private HuGuangDao huGuangDao;

    @Override
    public void add(HuGuang huGuang) {
        huGuangDao.add(huGuang);
    }

    @Override
    public HuGuang  get(String code) {
        return huGuangDao.get(code);
    }

    @Override
    public void  remove(String code) {
        huGuangDao.remove(code);
    }


}
